package com.leapp.sk.viewdelegate.adapter.join

import android.content.Context
import android.widget.TextView
import com.example.mvp.delegate.BaseAppDelegate
import com.leapp.sk.R
import com.leapp.sk.bean.SearchClassListEntity

/**
 * 搜索班级适配器视图托管类
 * @author  chaohaipeng  on 2018/7/11.
 */
class SearchClassAdapterDelegate : BaseAppDelegate() {
    override fun initWidget() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.adapter_search_class_item
    }

    /**
     * 设置数据
     */
    fun setData(context: Context,data: SearchClassListEntity){
        val tv_asci_title = getView<TextView>(R.id.tv_asci_title)
        val tv_asci_address = getView<TextView>(R.id.tv_asci_address)
        tv_asci_title.text=data?.className
        tv_asci_address.text=data?.address

    }
}